#include "stack.h"

void test1()
{
	ST s;
	STinit(&s);
	STpush(&s, 1);
	STpush(&s, 2);
	STpush(&s, 3);
	STpush(&s, 4);
	STpush(&s, 5);
	STpush(&s, 6);
	while (STempty(&s))
	{
		printf("%d ", STTop(&s));
		STpop(&s);
	}
}

int main()
{
	//teat1();
	ST s;
	STinit(&s);
	STpush(&s, 1);
	STpush(&s, 2);
	printf("%d ", STTop(&s));
	STpop(&s);
	STpush(&s, 3);
	STpush(&s, 4);
	STpush(&s, 5);
	STpush(&s, 6);
	while (!STempty(&s))
	{
		printf("%d ", STTop(&s));
		STpop(&s);
	}

	STDestroy(&s);
	return 0;
}